<?xml version="1.0" encoding="UTF-8"?>
<chess>

 <rules name="ChessRules">
 </rules>
 
 <desk height= "8" width="8">
 </desk>
 

 <figures>
 
  <figure name="King">
    <!-- moves -->
   <move type="slide"><to>0 1</to></move>
   <move type="slide"><to>0 -1</to></move>
   <move type="slide"><to>1 0</to></move>
   <move type="slide"><to>-1 0</to></move>
   <move type="slide"><to>1 1</to></move>
   <move type="slide"><to>1 -1</to></move>
   <move type="slide"><to>-1 -1</to></move>
   <move type="slide"><to>-1 1</to></move>  
   <move type="special"><to>2 0</to></move>
   <move type="special"><to>-2 0</to></move> 
   
    <!-- eates -->
   <eat type="slide"><to>0 1</to></eat>
   <eat type="slide"><to>0 -1</to></eat>
   <eat type="slide"><to>1 0</to></eat>
   <eat type="slide"><to>-1 0</to></eat>
   <eat type="slide"><to>1 1</to></eat>
   <eat type="slide"><to>1 -1</to></eat>
   <eat type="slide"><to>-1 -1</to></eat>
   <eat type="slide"><to>-1 1</to></eat>   
  </figure>
  
  <figure name="Pawn">
   
    <move type="slide"><to>0 1</to></move>
    <move type="fslide"><to>0 2</to></move>
    <eat type="slide"><to>1 1</to></eat>
    <eat type="slide"><to>-1 1</to></eat>
    <transform line="8" figure="Queen"/>
    
  </figure>
  
  <figure name="Rook">
    <move type="slide"><vect>0 1</vect></move>  
    <move type="slide"><vect>0 -1</vect></move>
    <move type="slide"><vect>1 0</vect></move>
    <move type="slide"><vect>-1 0</vect></move>
    
    <eat type="slide"><vect>0 1</vect></eat>  
    <eat type="slide"><vect>0 -1</vect></eat>
    <eat type="slide"><vect>1 0</vect></eat>
    <eat type="slide"><vect>-1 0</vect></eat>
  </figure>
  
  <figure name="Bishop">
    <move type="slide"><vect>1 1</vect></move>  
    <move type="slide"><vect>1 -1</vect></move>
    <move type="slide"><vect>-1 1</vect></move>
    <move type="slide"><vect>-1 -1</vect></move>
    
    <eat type="slide"><vect>1 1</vect></eat>  
    <eat type="slide"><vect>1 -1</vect></eat>
    <eat type="slide"><vect>-1 1</vect></eat>
    <eat type="slide"><vect>-1 -1</vect></eat>
  </figure>
  
  <figure name="Queen">
    <move type="slide"><vect>1 1</vect></move>  
    <move type="slide"><vect>1 -1</vect></move>
    <move type="slide"><vect>-1 1</vect></move>
    <move type="slide"><vect>-1 -1</vect></move>
    
    <eat type="slide"><vect>1 1</vect></eat>  
    <eat type="slide"><vect>1 -1</vect></eat>
    <eat type="slide"><vect>-1 1</vect></eat>
    <eat type="slide"><vect>-1 -1</vect></eat>
    
    <move type="slide"><vect>0 1</vect></move>  
    <move type="slide"><vect>0 -1</vect></move>
    <move type="slide"><vect>1 0</vect></move>
    <move type="slide"><vect>-1 0</vect></move>
    
    <eat type="slide"><vect>0 1</vect></eat>  
    <eat type="slide"><vect>0 -1</vect></eat>
    <eat type="slide"><vect>1 0</vect></eat>
    <eat type="slide"><vect>-1 0</vect></eat>
  </figure>
  
  <figure name="Knight">
   
    <move type="jump"><to>1 2</to></move>
    <move type="jump"><to>1 -2</to></move>
    <move type="jump"><to>-1 2</to></move>
    <move type="jump"><to>-1 -2</to></move>
    <move type="jump"><to>2 1</to></move>
    <move type="jump"><to>2 -1</to></move>
    <move type="jump"><to>-2 1</to></move>
    <move type="jump"><to>-2 -1</to></move>
    
    <eat type="jump"><to>1 2</to></eat>
    <eat type="jump"><to>1 -2</to></eat>
    <eat type="jump"><to>-1 2</to></eat>
    <eat type="jump"><to>-1 -2</to></eat>
    <eat type="jump"><to>2 1</to></eat>
    <eat type="jump"><to>2 -1</to></eat>
    <eat type="jump"><to>-2 1</to></eat>
    <eat type="jump"><to>-2 -1</to></eat>
    
  </figure>
  
  
 </figures>
 
 <position>
  <figure color="white" name="Pawn">1 2</figure>
  <figure color="white" name="Pawn">2 2</figure>
  <figure color="white" name="Pawn">3 2</figure>  
  <figure color="white" name="Pawn">4 2</figure>  
  <figure color="white" name="Pawn">5 2</figure>
  <figure color="white" name="Pawn">6 2</figure>
  <figure color="white" name="Pawn">7 2</figure>
  <figure color="white" name="Pawn">8 2</figure>
  <figure color="white" name="Rook">1 1</figure>  
  <figure color="white" name="Rook">8 1</figure>
  <figure color="white" name="Bishop">3 1</figure>
  <figure color="white" name="Bishop">6 1</figure>
  <figure color="white" name="Queen">4 1</figure>
  <figure color="white" name="Knight">2 1</figure>
  <figure color="white" name="Knight">7 1</figure>  
  
  <figure color="black" name="Pawn">1 7</figure>
  <figure color="black" name="Pawn">2 7</figure>
  <figure color="black" name="Pawn">3 7</figure>  
  <figure color="black" name="Pawn">4 7</figure>  
  <figure color="black" name="Pawn">5 7</figure>
  <figure color="black" name="Pawn">6 7</figure>
  <figure color="black" name="Pawn">7 7</figure>
  <figure color="black" name="Pawn">8 7</figure>
  <figure color="black" name="Rook">1 8</figure>  
  <figure color="black" name="Rook">8 8</figure>
  <figure color="black" name="Bishop">3 8</figure>
  <figure color="black" name="Bishop">6 8</figure>
  <figure color="black" name="Queen">4 8</figure>
  <figure color="black" name="Knight">2 8</figure>
  <figure color="black" name="Knight">7 8</figure>  
  
  <figure color="white" name="King">5 1</figure>
  <figure color="black" name="King">5 8</figure>
  
 </position>
</chess>
